package repository.relsys.domainmodel.general;

import java.util.Collection;

import thewebsemantic.Namespace;
import thewebsemantic.RdfType;
import thewebsemantic.Thing;
import thewebsemantic.Uri;
import thewebsemantic.vocabulary.Rdfs;

@Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
@RdfType("Resource")
public class ResourceCls implements Resource {

	protected String uri;

	@Deprecated
	public ResourceCls() {
	}

	@Deprecated
	public ResourceCls(String uri) {
		this.uri = uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public boolean equals(Object o) {
		if (!(o instanceof Resource))
			return false;
		Resource r = (Resource) o;
		return r.getURI().equals(this.getURI());
	}

	public String toString() {

		return getURI();

	}

	@Uri
	public String getURI() {

		return uri;
	}

}
